package qianfeng.com.jswebproject;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;

public class MainActivity extends AppCompatActivity {

    Intent intent;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        intent =  new Intent();
    }

    public void onClick(View view) {
        switch (view.getId())
        {
            case R.id.first_bt:
                intent.setClass(this,JSActivity.class);
                break;
            case R.id.second_bt:
                intent.setClass(this,UseActivity.class);
                break;
        }
        startActivity(intent);
    }
}
